import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNoteIssuance/BankNoteIssuanceUpholdEntry/search`,
}

// 明细查询
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNoteIssuance/BankNoteIssuanceUpholdEntry/detail?id=${data.id}`,
    method: 'get'
  })
}

// 挂失
export function reloss(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNoteIssuance/BankNoteIssuanceUpholdEntry/reloss`,
    method: 'post',
    data
  })
}

// 解挂
export function frloss(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNoteIssuance/BankNoteIssuanceUpholdEntry/frloss`,
    method: 'post',
    data
  })
}

// 取消
export function cancel(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/bepsTimeService/bankNoteIssuance/BankNoteIssuanceUpholdEntry/cancel`,
    method: 'post',
    data
  })
}
